package cn.bass.marketing.convertor;

import cn.bass.marketing.common.vo.resp.MarketingActivityRespVO;
import cn.bass.marketing.entity.MarketingActivityDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * {@author}: LiuWei
 * {@version}: 1.0
 * {@since}: 2024-08-15
 * {@link}: cn.bass.marketing.common.constant.RulesConstant
 * 描述：权重规则枚举
 */
@Mapper
public interface MarketingActivityConvertor {
    MarketingActivityConvertor INSTANCE = Mappers.getMapper(MarketingActivityConvertor.class);

    MarketingActivityRespVO do2respVO(MarketingActivityDO marketingActivity);

    MarketingActivityDO respVO2do(MarketingActivityRespVO marketingActivityDTO);

    List<MarketingActivityDO> respVO2dto(List<MarketingActivityRespVO> marketingActivities);

    List<MarketingActivityRespVO> dto2respVO(List<MarketingActivityDO> marketingActivityDTOs);
}
